<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../code/vue.js"></script>
</head>
<body>
        <div id="app"> 
            <div>num:{{num}}</div>
            <input type="text" v-model="num">
            <hr>
            <!-- 使用v-once进行绑定 -->
            <!-- 一次性渲染  了解 -->
            <div v-once>num:{{ num }}</div>
        </div>
        <script>
            new Vue({
                el:"#app",
                data:{
                    num:10
                }
            })
        </script>
</body>
</html>